package com.ruoyi.yyq.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商户提现记录对象 car_withdrawal
 * 
 * @author 尹永青
 * @date 2025-05-12
 */
public class CarWithdrawal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 提现记录ID */
    private Long id;

    /** 商户ID */
    @Excel(name = "商户ID")
    private Long merchantId;

    /** 提现金额 */
    @Excel(name = "提现金额")
    private Long cashWithdrawal;

    /** 银行名称 */
    @Excel(name = "银行名称")
    private String backName;

    /** 开户人真实姓名 */
    @Excel(name = "开户人真实姓名")
    private String realName;

    /** 银行卡号 */
    @Excel(name = "银行卡号")
    private String bankCardNumber;

    /** 提现申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提现申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date withdrawalTime;

    /** 提现状态（1=审核中 2=提现成功 3=提现失败） */
    @Excel(name = "提现状态", readConverterExp = "1==审核中,2==提现成功,3==提现失败")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }

    public void setCashWithdrawal(Long cashWithdrawal) 
    {
        this.cashWithdrawal = cashWithdrawal;
    }

    public Long getCashWithdrawal() 
    {
        return cashWithdrawal;
    }

    public void setBackName(String backName) 
    {
        this.backName = backName;
    }

    public String getBackName() 
    {
        return backName;
    }

    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }

    public void setBankCardNumber(String bankCardNumber) 
    {
        this.bankCardNumber = bankCardNumber;
    }

    public String getBankCardNumber() 
    {
        return bankCardNumber;
    }

    public void setWithdrawalTime(Date withdrawalTime) 
    {
        this.withdrawalTime = withdrawalTime;
    }

    public Date getWithdrawalTime() 
    {
        return withdrawalTime;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("merchantId", getMerchantId())
            .append("cashWithdrawal", getCashWithdrawal())
            .append("backName", getBackName())
            .append("realName", getRealName())
            .append("bankCardNumber", getBankCardNumber())
            .append("withdrawalTime", getWithdrawalTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .toString();
    }
}
